package kr.co.dongpang.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

public class DmGoodUpEtcDialog extends Activity {

	protected static final int SIZE_TYPE = 0;

	String goodcd;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		goodcd = getIntent().getStringExtra("goodcd");

		setContentView(R.layout.dm_goodup_etc);

		((LinearLayout) findViewById(R.id.typeA)).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
	        	intent.putExtra("type", "A");
	            setResult(RESULT_OK, intent);
				finish();
			}
		});
		
		((LinearLayout) findViewById(R.id.typeB)).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
	        	intent.putExtra("type", "B");
	            setResult(RESULT_OK, intent);
				finish();
			}
		});
		
		((LinearLayout) findViewById(R.id.typeC)).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
	        	intent.putExtra("type", "C");
	            setResult(RESULT_OK, intent);
				finish();
			}
		});
		
		((LinearLayout) findViewById(R.id.typeD)).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
	        	intent.putExtra("type", "D");
	            setResult(RESULT_OK, intent);
				finish();
			}
		});
		
		((LinearLayout) findViewById(R.id.typeE)).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
	        	intent.putExtra("type", "E");
	            setResult(RESULT_OK, intent);
				finish();
			}
		});
		
		((LinearLayout) findViewById(R.id.typeF)).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
	        	intent.putExtra("type", "F");
	            setResult(RESULT_OK, intent);
				finish();
			}
		});		
		
		((LinearLayout) findViewById(R.id.typeG)).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
	        	intent.putExtra("type", "G");
	            setResult(RESULT_OK, intent);
				finish();
			}
		});	
		
		((LinearLayout) findViewById(R.id.typeH)).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
	        	intent.putExtra("type", "H");
	            setResult(RESULT_OK, intent);
				finish();
			}
		});	
		
	}

}
